//
//  MLDropdownView.h
//  MSHandbook
//
//  Created by molon on 14/11/12.
//  Copyright (c) 2014年 molon. All rights reserved.
//

#import <UIKit/UIKit.h>

#define kDefaultMessageColor [UIColor whiteColor];
#define kDefaultBackgroundColor [UIColor colorWithRed:0.961 green:0.145 blue:0.255 alpha:0.88]
#define kDefaultMessageFont [UIFont boldSystemFontOfSize:14.0f]

@interface MLDropdownView : UIView

@property (nonatomic, copy) void (^didTapBlock)();

+ (MLDropdownView*)showInView:(UIView*)view message:(NSString*)message animated:(BOOL)animated;
+ (MLDropdownView*)showInView:(UIView*)view message:(NSString*)message backgroundColor:(UIColor *)backgroundColor messageColor:(UIColor*)messageColor font:(UIFont*)font animated:(BOOL)animated;
+ (MLDropdownView*)showInView:(UIView*)view message:(NSString*)message backgroundColor:(UIColor *)backgroundColor messageColor:(UIColor*)messageColor font:(UIFont*)font customOffsetY:(CGFloat)customOffsetY animated:(BOOL)animated;



+ (MLDropdownView*)showInView:(UIView*)view message:(NSString*)message animated:(BOOL)animated hideAfterDelay:(NSTimeInterval)delay;
+ (MLDropdownView*)showInView:(UIView*)view message:(NSString*)message backgroundColor:(UIColor *)backgroundColor messageColor:(UIColor*)messageColor font:(UIFont*)font animated:(BOOL)animated hideAfterDelay:(NSTimeInterval)delay;
+ (MLDropdownView*)showInView:(UIView*)view message:(NSString*)message backgroundColor:(UIColor *)backgroundColor messageColor:(UIColor*)messageColor font:(UIFont*)font customOffsetY:(CGFloat)customOffsetY animated:(BOOL)animated hideAfterDelay:(NSTimeInterval)delay;


+ (BOOL)hideInView:(UIView*)view animated:(BOOL)animated;


+ (MLDropdownView*)dropdownViewInView:(UIView*)view;


@end
